package com.seek.service.impl;

import com.seek.dao.SysUserMapper;
import com.seek.domain.SysUser;
import com.seek.service.SysUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author : zhangxi
 * @version : v1.0
 * @date : 2018-09-22 10:29
 */
@Service
public class SysUserServiceImpl implements SysUserService{
    @Resource
    private SysUserMapper sysUserMapper;
    /**
     * 查询所有的用户信息
     * @return List
     */
    @Override
    public List<SysUser> listAllUser() {
        return sysUserMapper.listAllUser();
    }

    /**
     * 根据用户名查找用户
     * @param username 用户名
     * @return SysUser
     */
    @Override
    public SysUser getUserByUsername(String username) {
        return sysUserMapper.getUserByUsername(username);
    }
}
